package com.oo.inherit_3.school;

/**
 * Person--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 11:54
 **/
public class Person {

    private String name;

    private int age;

    private String sex;

    public Person(String name, int age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    public Person() {
    }

    protected void intro() {
        System.out.println("我是普通人，要工作才有饭吃");
    }

    protected void sleep() {
        System.out.println("我是普通人吃饱了才睡");
    }

    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
